UseMovieEditState
Your application can use theUseMovieEditState
function to return a movie to its condition according to an edit state you created previously.
pascal OSErr UseMovieEditState (Movie theMovie, MovieEditState toState);
theMovie
- Specifies the movie for this operation. Your application obtains this movie identifier from such functions as
NewMovie
,NewMovieFromFile
, andNewMovieFromHandle
(described on page 2-80, page 2-76, and page 2-78, respectively).toState
- Specifies the edit state for this operation. Your application obtains this edit state identifier when you create the edit state by calling the
NewMovieEditState
function (described in the previous section).DESCRIPTION
TheUseMovieEditState
function uses the information stored in the edit state to update the movie's contents. This may change the contents of some of the movie's tracks, or it may even add tracks to the movie or remove tracks from the movie. Consequently, the movie's time and spatial characteristics, especially the duration, may change as a result of restoring the saved edit state. Your application creates an edit state by calling theNewMovieEditState
function, which is described in the previous section.ERROR CODES